import Mock from 'mockjs'

export default [
  {
    url: '/bill/getLatestBillList',
    type: 'get',
    response: config => {
      return {
        code: 20000,
        data: Mock.mock({
          'list|10': [{
            'billId': '@id',
            billName: '@cword(4, 20)',
            categoryName: '@cword(2, 4)',
            'status|1': [0, 1, 2],
            createTime: '@date(yyyy-MM-dd)',
            'price|0-100000' : 0
          }]
        }).list
      }
    }
  },
]